import { useState, useEffect } from "react";
import style from "./index.module.scss";
import { Button, Overlay, Toast } from "react-vant";

const BaseUrl =
  process.env.REACT_APP_ENV === "prod"
    ? "https://webapi.pupupal.com"
    : "https://kk-test-webapi.sayhaiapp.com";
const urlParams = new URLSearchParams(window.location.search);
const authorizationToken = urlParams.get("userId");

const Index = () => {
  const [info, setInfo] = useState({});

  return (
    <>
      <Button type="primary" onClick={() => setShow(true)}>
        显示遮罩层
      </Button>
      <Overlay visible={show} onClick={() => setShow(false)} />
    </>
  );
};

export default Index;
